<div class="m-tab s-tab">
	<h2 class="u-tt">{$formInfo.name}管理</h2>
	<ul>
		<li class="z-crt"><a href="<?php echo url('AdminFormData/index',array('form_id'=>$formInfo['form_id'])); ?>">{$formInfo.name}列表</a></li>
		<li><a href="<?php echo url('AdminFormData/add',array('form_id'=>$formInfo['form_id'])); ?>">添加{$formInfo.name}</a></li>
	</ul>
</div>
<table class="m-table m-table-row" id="table">
	<thead class="m-table-thead s-table-thead">
		<tr>
			<th class="cola">ID</th>
			<!--{loop="$fieldList $val"}-->
			{if="$val['display']"}
			<td>{$val.name}</td>
			{/if}
			<!--{/loop}-->
			<th class="colc">操作</th>
		</tr>
	</thead>
	<tbody>
		<!--{loop="$list $key $vo"}-->
		<tr>
			<td>{$vo.data_id}</td>
			<!--{loop="$fieldList $val"}-->
			{if="$val['display']"}
			<td><?php echo model('Field')->showField($vo[$val['field']],$val['type'],$val['config']); ?></td>
			{/if}
			<!--{/loop}-->
			<td><a href="<?php echo url('AdminFormData/edit',array('form_id'=>$formInfo['form_id'],'data_id'=>$vo['data_id'])); ?>">编辑</a> / <a href="javascript:;" data="{$vo.data_id}-{$formInfo.form_id}" class="u-del">删除</a></td>
		</tr>
		<!--{/loop}-->
	</tbody>
</table>
<div class="m-table-tool">
	<div class="m-page"> {$page} </div>
</div>
<script>
Do.ready('base','dialog',function() {
	$('#table').duxTable({selectAll:'#selectAll',deleteUrl:'{$url|"AdminFormData/del"}'});
});
</script>